package com.naiterui.ehp.bs.recommend.bean;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import lombok.Data;

/***
 * 常用处方
 * 
 * @author yangfuya
 */
@Data
@Entity
@Table(name = "dr_common_prescription")
public class CommonPrescription implements Serializable {

    private static final long serialVersionUID = 4279478699025988404L;
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    /**
     * 医生ID
     */
    @Column(name = "doctor_id")
    private Long doctorId;

    /**
     * 处方名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 处方描述
     */
    @Column(name = "description")
    private String description;

    /**
     * 处方笺临床诊断
     */
    private String diagnosis;

    /**
     * 删除标识 0.未删除 1.已删除
     */
    @Column(name = "del_flag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 修改时间
     */
    @Column(name = "changed_at")
    private Date changedAt;

    /**
     * 修改人
     */
    @Column(name = "changed_by")
    private String changedBy;

    @Version
    private Integer version;
}
